package org.dromara.agriculture.domain.bo;

import org.dromara.agriculture.domain.AgricultureStandardJob;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 标准作业任务业务对象 agriculture_standard_job
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AgricultureStandardJob.class, reverseConvertGenerate = false)
public class AgricultureStandardJobBo extends BaseEntity {

    /**
     * 作业任务ID
     */
    @NotNull(message = "作业任务ID不能为空", groups = { EditGroup.class })
    private Long jobId;

    /**
     * 种质ID
     */
    @NotNull(message = "种质ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long germplasmId;

    /**
     * 作业任务名称
     */
    @NotBlank(message = "作业任务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jobName;

    /**
     * 作业周期单位（0代表周 1代表天）
     */
    @NotBlank(message = "作业周期单位（0代表周 1代表天）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cycleUnit;

    /**
     * 起始周/天
     */
    @NotNull(message = "起始周/天不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long jobStart;

    /**
     * 结束周/天
     */
    @NotNull(message = "结束周/天不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long jobFinish;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;


}
